public class Test {
    public static void main(String[] args) {
        SingleLinkedList singleLinkedList = new SingleLinkedList();
        SingleLinkedList singleLinkedList1 = new SingleLinkedList();
        singleLinkedList.createList();//一般不使用此方法创建链表(此处使用只是便于理解链表结构)
        singleLinkedList.myToString();
        System.out.println(singleLinkedList.contains(12));
        System.out.println("长度:" + singleLinkedList.size());
        singleLinkedList1.addFirst(23);
        singleLinkedList1.addFirst(12);
        singleLinkedList1.myToString();
        SingleLinkedList singleLinkedList2 = new SingleLinkedList();
        singleLinkedList2.addLast(23);
        singleLinkedList2.addLast(12);
        singleLinkedList2.addIndex(1,66);
        singleLinkedList2.addIndex(3,77);
        singleLinkedList2.addIndex(0,88);
        singleLinkedList2.myToString();
        singleLinkedList2.remove(88);
        singleLinkedList2.remove(77);
        singleLinkedList2.remove(66);
        singleLinkedList2.myToString();
        System.out.println("长度:" + singleLinkedList2.size());
        singleLinkedList2.addLast(23);
        singleLinkedList2.removeAllKey(23);
        singleLinkedList2.myToString();
        System.out.println("长度:" + singleLinkedList2.size());
    }
}
